<template>
  <GdContainerWithBtns v-model:isShowContainer="isShowContainer" :container-attr="containerAttr"
    :event-from-config="containerEventFromConfig" @do-operation="(params) => emits('do-operation', params)"
    :class="{ 'less-item-form': metaItemList.length <= 5 }">
    <SceneContainerForm :common-attr="commonAttr" :meta-item-list="metaItemList"
      :meta-dynmic-config-list="dialogFormItemDynmicConfigList" :form-data="formData"
      :vm-template-config="vmTemplateConfigRefVal"></SceneContainerForm>
  </GdContainerWithBtns>
</template>
<script>
export default {
  name:"BtnEmitForm",
  inheritAttrs: false,
};
</script>
<script setup>
import {
  watch,
  ref,
  shallowRef,
  reactive,
  computed,
  getCurrentInstance,
  inject,
  toRefs,
} from "vue";
import GdContainerWithBtns from "@gd-accbuild-ui/gd-ui/gd-container-with-btns/gd-container-with-btns.vue";
import SceneContainerForm from "../../../../scene-container-form/scene-container-form.vue";
import useDoEventStrategy from "./useDoEventStrategy";

const props = defineProps({
  allBtnsEmitFormItemMetaConfig: {
    type: Object,
  },
  operationEventParams: {
    type: Object,
  },
  ///////////
  tableCommonAttr: {
    type: Object,
    default: () => ({}),
  },
  dialogFormItemDynmicConfigList: {
    type: Array,
  },
  cellForceMetaConfigMapping: {
    type: Object,
  },
});

const eventRet = useDoEventStrategy(props);

const {
  isShowContainer,
  containerAttr,
  containerEventFromConfig,
  commonAttr,
  metaItemList,
  formData,
  vmTemplateConfigRefVal
} = eventRet;

const emits = defineEmits(["do-operation"]);
</script>
<style lang="scss" scoped>

</style>
